<#macro foodItem item>
<div class="item">
    <a href="/food/detail/${item.id}"><img src="/data/${item.icon}"></a>
    <div class="item-info">
        <div class="clearfix item-info-row">
            <span class="pull-left text-red font-16"><strong>￥${item.price?string('#0.00')}</strong><#if item.oldprice?? && item.oldprice gt 0>&nbsp;&nbsp;&nbsp;&nbsp;<del>${item.oldprice}</del></#if></span>
            <span class="pull-right color-grey">销售${item.times!0}件</span>
        </div>
        <div class="clearfix item-info-row font-12">${item.name!}</div>
        <div class="clearfix item-info-row">
            <span  onclick="collect('${item.id}',this)" class="color-grey"  style="cursor: pointer">
                <i class="icon icon-2x <#if item.collect == 0>icon-star-empty<#else>icon-star</#if>">&nbsp;</i>
            </span>
            <a class="pull-right btn btn-success btn-sm" onclick="saveItem('${item.id}','1')">加入餐车</a>
        </div>
    </div>
</div>
</#macro>